package com.mobile.struts.action;

import org.apache.struts.action.Action;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

public class BaseAction extends Action {
	public BaseAction(){
		super();
	}
	/**
	 * 获取spring的context
	 * @return
	 */
	public WebApplicationContext getWac() {
		WebApplicationContext wac =
			   WebApplicationContextUtils.getRequiredWebApplicationContext(servlet.getServletContext());
		return wac;
	}
}
